home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / ddx / sprite.X11R3 / hdr / traprop.h < prev   
Encoding:
C/C++ Source or Header  |  1989-11-03  |  556 b   |  27 lines

  1. /*    @(#)traprop.h 1.7 88/02/08 SMI    */
  2.  
  3. /*
  4.  * Copyright (c) 1984 by Sun Microsystems, Inc.
  5.  */
  6.  
  7. #ifndef traprop_DEFINED
  8. #define traprop_DEFINED
  9.  
  10. struct pr_chain {
  11.     struct pr_chain    *next;
  12.     struct pr_size    size;        /* size of bounding box */
  13.     int        *bits;        /* chain-encoding bits */
  14. };
  15.  
  16. struct pr_fall {
  17.     struct pr_pos    pos;        /* position of top of fall */
  18.     struct pr_chain    *chain;        /* trajectory of fall */
  19. };
  20.  
  21. struct pr_trap {
  22.     struct pr_fall    *left, *right;    /* falls = left+right boundaries */
  23.     int y0, y1;            /* top+bottom boundaries */
  24. };
  25.  
  26. #endif traprop_DEFINED
  27.